﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="EditTran.aspx.cs"
    Inherits="RealEstate.EditTran" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .iheader
        {
            text-decoration: underline;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlClientInformation">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlClientInformation" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="pnlPropertyInformation">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlPropertyInformation" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="pnlTransactionDetail">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlTransactionDetail" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="pnlTransactionStatus">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlTransactionStatus" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Sunset" />
    <script type="text/javascript">
        //<![CDATA[
        function openWin(url) {
            var oWnd = radopen(url, "RadWindow1");
        }

        function OnClientClose(oWnd, args) {
            //get the transferred arguments
            var arg = args.get_argument();
            if (arg) {
                var cityName = arg.cityName;
                var seldate = arg.selDate;
                $get("order").innerHTML = "You chose to fly to <strong>" + cityName + "</strong> on <strong>" + seldate + "</strong>";
            }
        }
        //]]>
    </script>
    <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
        ReloadOnShow="true" runat="server" Skin="Sunset" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close" OnClientClose="OnClientClose"
                NavigateUrl="StatusHistory.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="RadWindow2" runat="server" Width="650" Height="480" Modal="true"
                NavigateUrl="StatusHistory.aspx">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <p>
        <asp:ImageButton runat="server" ID="imgEdit" ImageUrl="~/Images/update_tran.png"
            OnClick="imgEdit_Click" Height="32px" />&nbsp;&nbsp;
        <asp:ImageButton runat="server" ID="imgBack" ImageUrl="~/Images/back.png" Height="32px"
            OnClick="imgBack_Click" />
    </p>
    <asp:Panel ID="pnlCaseInformation" runat="server" Width="100%">
        <table width="100%">
            <colgroup>
                <col width="25%" />
                <col width="25%" />
                <col width="25%" />
                <col width="*" />
            </colgroup>
            <tr>
                <td>
                    Case Number :
                </td>
                <td>
                    <telerik:RadTextBox Culture="en-us" Type="Number" ID="txtCaseIDNumber" runat="server"
                        Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    Date Open:
                </td>
                <td>
                    <telerik:RadDatePicker ID="rdpDateOpen" runat="server" AutoPostBack="true" MinDate="01/01/1000"
                        MaxDate="01/01/3000" Width="150px">
                    </telerik:RadDatePicker>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    Archive:
                </td>
                <td>
                    <asp:CheckBox ID="chkArchive" runat="server" />
                </td>
                <td>
                </td>
                <td colspan="2">                    
                    <asp:HyperLink ID="hplHistory" runat="server" NavigateUrl="#" ForeColor="Blue">View all status history</asp:HyperLink>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnlClientInformation" runat="server" Width="100%">
        <table width="100%">
            <colgroup>
                <col width="25%" />
                <col width="25%" />
                <col width="25%" />
                <col width="*" />
            </colgroup>
            <tr>
                <td colspan="2">
                    <span class="iheader"><strong>Client's Information</strong></span>
                </td>
                <td colspan="2">
                    <span class="iheader"><strong>Co Client's Information</strong></span>
                </td>
            </tr>
            <tr>
                <td>
                    Select Exist Client
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlClient" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlClient_SelectedIndexChanged"
                        Width="154px">
                    </telerik:RadComboBox>
                </td>
                <td>
                    Select Exist Coclient
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlCoClient" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCoClient_SelectedIndexChanged"
                        Width="154px">
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td>
                    Client's Last Name :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtClientLastName" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Co Client's Last Name :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtCoClientLastName" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Client's First Name :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtClientFirstName" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Co Client's First Name :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtCoClientFirstName" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Client's SSN :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtClientSSN" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Co Client's SSN :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtCoClientSSN" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Work Phone Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtClientWorkPhone" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Work Phone Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtCoClientWorkPhone" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Client's Fax Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtClientFaxNumber" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Client's Fax Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtCoClientFaxNumber" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Home Phone Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtClientHomePhone" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Home Phone Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtCoClientHomePhone" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Cell Phone Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtClientCellPhone" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Cell Phone Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtCoClientCellPhone" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Email :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtClientEmail" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Email :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtCoClientEmail" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Birth Date :
                </td>
                <td>
                    <telerik:RadDatePicker ID="rdpClientBirthDate" runat="server" AutoPostBack="true"
                        MinDate="01/01/1000" MaxDate="01/01/3000" Width="150px">
                    </telerik:RadDatePicker>
                </td>
                <td>
                    Birth Date :
                </td>
                <td>
                    <telerik:RadDatePicker ID="rdpCoClientBirthDate" runat="server" AutoPostBack="true"
                        MinDate="01/01/1000" MaxDate="01/01/3000" Width="150px">
                    </telerik:RadDatePicker>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
    </p>
    <asp:Panel ID="PnlTransactionInformation" runat="server" Width="100%">
        <table width="100%">
            <colgroup>
                <col width="25%" />
                <col width="25%" />
                <col width="25%" />
                <col width="*" />
            </colgroup>
            <tr>
                <td colspan="4">
                    <span class="iheader"><strong>Transaction Information</strong></span>
                </td>
            </tr>
            <tr>
                <td>
                    Client Type :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlClientType" runat="server" Width="154px">
                    </telerik:RadComboBox>
                </td>
                <td>
                    Source Of Business :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlSourceOfBusiness" runat="server" Width="154px">
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td>
                    Urgency :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlUrgency" runat="server" Width="154px">
                    </telerik:RadComboBox>
                </td>
                <td>
                    Refered By :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtReferedBy" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
    </p>
    <asp:Panel ID="pnlPropertyInformation" runat="server" Width="100%">
        <span class="iheader"><strong>Property Information</strong></span>
        <table width="100%">
            <colgroup>
                <col width="25%" />
                <col width="25%" />
                <col width="25%" />
                <col width="*" />
            </colgroup>
            <tr>
                <td colspan="2">
                    <strong>Subject Address</strong>
                </td>
                <td>
                    <strong>Mailing Address</strong>
                </td>
                <td>
                    <asp:CheckBox ID="chkSame" runat="server" Text="<i><b>Same as Subject Address</b></i>"
                        AutoPostBack="true" OnCheckedChanged="chkSame_CheckedChanged" />
                </td>
            </tr>
            <tr>
                <td>
                    Select Exist Subject
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlSubject" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlSubject_SelectedIndexChanged"
                        Width="154px">
                    </telerik:RadComboBox>
                </td>
                <td>
                    Select Exist Mailing
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlMailing" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlMailing_SelectedIndexChanged"
                        Width="154px">
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td>
                    SubjectPropertyType
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlSubjectPropertyType" runat="server" Width="154px">
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td>
                    Street Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtSubjectStreetNumber" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Street Number :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtMailStreetNumber" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Street Name :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtSubjectStreetName" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    Street Name :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtMailStreetName" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    State :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlState1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlState1_SelectedIndexChanged"
                        Width="154px">
                    </telerik:RadComboBox>
                </td>
                <td>
                    State :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlState2" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlState2_SelectedIndexChanged"
                        Width="154px">
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td>
                    City :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlCity1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCity1_SelectedIndexChanged"
                        Width="154px">
                    </telerik:RadComboBox>
                </td>
                <td>
                    City :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlCity2" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCity2_SelectedIndexChanged"
                        Width="154px">
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td>
                    ZipCode :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtZipCode" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
                <td>
                    ZipCode :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtZipCode_New" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
    </p>
    <asp:Panel ID="pnlTransactionDetail" runat="server" Width="100%">
        <table width="100%">
            <colgroup>
                <col width="25%" />
                <col width="25%" />
                <col width="25%" />
                <col width="*" />
            </colgroup>
            <tr>
                <td colspan="4">
                    <span class="iheader"><strong>Transaction Details</strong></span>
                </td>
            </tr>
            <tr>
                <td>
                    Purchase Sold Price :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtPurchasePrice"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                    TotalEquity/AppraisalValue :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtTotalEquity" runat="server"
                        Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Contract Date :
                </td>
                <td>
                    <telerik:RadDatePicker ID="rdpPurchaseDate" runat="server" AutoPostBack="true" MinDate="01/01/1000"
                        MaxDate="01/01/3000" Width="150px">
                    </telerik:RadDatePicker>
                </td>
                <td>
                    Loan Amount :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Number" ID="txtLoanAmount" runat="server"
                        Skin="Office2007" Width="150px">
                        <NumberFormat GroupSeparator="" DecimalDigits="0" />
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Date Of COE :
                </td>
                <td>
                    <telerik:RadDatePicker ID="rdpDateOfCOE" runat="server" AutoPostBack="true" MinDate="01/01/1000"
                        MaxDate="01/01/3000" Width="150px">
                    </telerik:RadDatePicker>
                </td>
                <td>
                    Program :
                </td>
                <td>
                    <telerik:RadTextBox runat="server" ID="txtProgram" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
    </p>
    <asp:Panel ID="pnlFinancialInfo" runat="server" Width="100%">
        <table width="100%">
            <colgroup>
                <col width="25%" />
                <col width="25%" />
                <col width="25%" />
                <col width="*" />
            </colgroup>
            <tr>
                <td colspan="4">
                    <span class="iheader"><strong>Financial Info</strong></span>
                </td>
            </tr>
            <tr>
                <td>
                    HouseHold Income :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtHouseHoldIncome"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                    HouseHold Debits :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtHouseHoldDebits"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
    </p>
    <asp:Panel ID="pnlTransactionStatus" runat="server" Width="100%">
        <table width="100%">
            <colgroup>
                <col width="25%" />
                <col width="25%" />
                <col width="*" />
            </colgroup>
            <tr>
                <td colspan="3">
                    <span class="iheader"><strong>TransactionStatus_RE</strong></span>
                </td>
            </tr>
            <tr>
                <td>
                    Status Of Case :
                </td>
                <td>
                    <telerik:RadComboBox ID="ddlCaseStatus" runat="server" Width="154px">
                    </telerik:RadComboBox>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    Date Of Status :
                </td>
                <td>
                    <telerik:RadDatePicker ID="rdpDateStatus" runat="server" AutoPostBack="true" MinDate="01/01/1000"
                        MaxDate="01/01/3000" Width="150px">
                    </telerik:RadDatePicker>
                </td>
                <td>
                    <div id="order" class="orderText">
                    </div>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
    </p>
    <asp:Panel ID="pnlMyIncomeInfo" runat="server" Width="100%">
        <table width="100%">
            <colgroup>
                <col width="25%" />
                <col width="25%" />
                <col width="25%" />
                <col width="*" />
            </colgroup>
            <tr>
                <td colspan="4">
                    <span class="iheader"><strong>My Income Info</strong></span>
                </td>
            </tr>
            <tr>
                <td>
                    Total Gross Income :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtTotalGrossIncome"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Credit To Client :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtCreditToClient"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                    Way To Credit :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtWayToCredit" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Expense :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtExpense" runat="server"
                        Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                    Expense Type :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtExpenseType" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Pay To Assistant :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtPayToAssistant"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                    Assistant Name :
                </td>
                <td>
                    <telerik:RadTextBox ID="txtAssistantName" runat="server" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Referal Fee :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtReferalFee" runat="server"
                        Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Gross Commission :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtGrossCommission"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    My Gross Income :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtMyGrossIncome"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Other Income :
                </td>
                <td>
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtOtherIncome" runat="server"
                        Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                    Reason For Other Income :
                </td>
                <td rowspan="3">
                    <telerik:RadTextBox ID="txtReasonForOtherIncome" runat="server" TextMode="MultiLine"
                        Rows="3" Width="150px">
                    </telerik:RadTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Transaction Fee :
                </td>
                <td valign="top">
                    <telerik:RadNumericTextBox Culture="en-us" Type="Currency" ID="txtTransactionFee"
                        runat="server" Skin="Office2007" Width="150px">
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <p>
    </p>
    <table width="100%">
        <colgroup>
            <col width="25%" />
            <col width="*" />
        </colgroup>
        <tr>
            <td>
                <span class="iheader"><strong>Notes :</strong></span>
            </td>
            <td>
                <telerik:RadTextBox ID="txtNotes" runat="server" Width="608px" TextMode="MultiLine"
                    Rows="3">
                </telerik:RadTextBox>
            </td>
        </tr>
    </table>
</asp:Content>
